package com.cbdp.common.exception;

import lombok.Getter;

/**
 * com.cbdp.common.exception
 *
 * @author 白雨浓
 * date: 2018/10/26 12:10
 * content: 业务异常
 */
@Getter
public class BizException extends RuntimeException {

    private int code;
    private String message;

    public BizException(String message) {
        super(message);
        this.code = 403;
        this.message = message;
    }

    public BizException(int code, String message) {
        super(message);
        this.code = code;
        this.message = message;
    }
}
